<?php
/**
 * 空控制器
 */
namespace app\service\controller;
use app\common\controller\OpenBase;
use \think\Loader;
class Error extends OpenBase{
    protected $service_list = [
        'ZBCloud_User_Add' => 'open/User/add',
    ];
    public function _empty(){
        return $this->route();
    }
    /**
     * @name 解析路由
     */
    public function route(){
        if(array_key_exists($this->name,$this->service_list)){
            return Loader::action($this->service_list[$this->name],$this->data);
        }else{
            return getApiErrorCode('00404');
        }
    }
 }